import { MockMethod } from 'vite-plugin-mock';
export default [
  {
    url: '/api/system/getMenu',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 0,
        message: 'ok',
        data: [{
            "id": 1
            , name: 'system'
            , displayName: '系统管理'
            , path: '/system'
            , icon: 'el-icon-menu'
            , page: '/layout/index.vue'
            , type: 0
            , children: [
                {
                    "id": 1
                    , name: 'user'
                    , displayName: '用户管理'
                    , path: '/system/user'
                    , page: '/system/user/index.vue'
                    , type: 0
                }
                , {
                    "id": 2
                    , name: 'department'
                    , displayName: '部门管理'
                    , path: '/system/department'
                    , page: '/system/department/index.vue'
                    , type: 0
                }
                , {
                  "id": 3
                  , name: 'role'
                  , displayName: '角色管理'
                  , path: '/system/role'
                  , page: '/system/department/index.vue'
                  , type: 0
                }
                , {
                  "id": 4
                  , name: 'authority'
                  , displayName: '权限管理'
                  , path: '/system/authority'
                  , page: '/system/department/index.vue'
                  , type: 0
                }
                , {
                  "id": 5
                  , name: 'module'
                  , displayName: '模块管理'
                  , path: '/system/module'
                  , page: '/system/department/index.vue'
                  , type: 0
                }
                , {
                  "id": 6
                  , name: 'config'
                  , displayName: '系统配置'
                  , path: '/system/config'
                  , page: '/system/department/index.vue'
                  , type: 0
                }
                , {
                  "id": 7
                  , name: 'client'
                  , displayName: '密钥管理'
                  , path: '/system/client'
                  , page: '/system/department/index.vue'
                  , type: 0
                }
            ]
        }],
      };
    },
  },
] as MockMethod[];